import { ComponentType } from "react"
import { Navigate } from "react-router-dom"
let HOClogin = (Com:ComponentType) => {
    return () => {
        let token = localStorage.getItem("token")
        return token ? <Com></Com> : <Navigate to="/dl"></Navigate>
    }
}
export default HOClogin